<!DOCTYPE HTML>
<title>Canvas test: initial.reset.path</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="initial.reset.same.html" title="initial.reset.same">
<link rel="next" href="initial.reset.clip.html" title="initial.reset.clip">
<body class="show_output">
<p>
 <a href="initial.reset.same.html" accesskey="p" title="[p] initial.reset.same">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="initial.reset.clip.html" accesskey="n" title="[n] initial.reset.clip">&gt;</a>
<h1><a href="index.initial.html">initial</a>.<a href="index.initial.reset.html">reset</a>.path</h1>
<p class="desc">Resetting the canvas state resets the current path</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.initial.reset">initial.reset</a>

</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50" style="background: #0f0"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="initial.reset.path.png" class="output expected" id="expected" alt="" style="background: #0f0">
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

canvas.width = 100;
ctx.rect(0, 0, 100, 50);
canvas.width = 100;
ctx.fillStyle = '#f00';
ctx.fill();
_assertPixel(canvas, 20,20, 0,0,0,0, "20,20", "0,0,0,0");


});
</script>

